home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / scpageoutput_ps2.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-03-31  |  1.1 KB  |  49 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef SCPAGEOUTPUTPS2_H
  8. #define SCPAGEOUTPUTPS2_H
  9.  
  10. #include <QDataStream>
  11. #include <QRect>
  12.  
  13. #include "scconfig.h"
  14. #include "scribusapi.h"
  15. #include "scpageoutput.h"
  16. #include "scpainterex_ps2.h"
  17.  
  18. class ScribusDoc;
  19. class Page;
  20. class QIODevice;
  21.  
  22. class SCRIBUS_API ScPageOutput_Ps2 : public ScPageOutput
  23. {
  24. protected:
  25.  
  26.     QRect m_clip;
  27.     QIODevice* m_device;
  28.     QTextStream m_stream;
  29.     ScPs2OutputParams m_options;
  30.  
  31.     int m_pageIndex;
  32.  
  33.     virtual void initStream(QIODevice* dev);
  34.  
  35. public:
  36.  
  37.     ScPageOutput_Ps2(QIODevice* dev, ScribusDoc* doc, int pageIndex, ScPs2OutputParams& options);
  38.     virtual ~ScPageOutput_Ps2();
  39.  
  40.     virtual void begin(void);
  41.     virtual void drawPage(Page* page);
  42.     virtual void end(void);
  43.  
  44.     const QRect clip(void);
  45.     void  setClip(const QRect& rect) { m_clip = rect; }
  46. };
  47.  
  48. #endif
  49.